<?php
if(!isset($_SESSION)) 
	{ 
		session_start(); 
	}
	include '../connection/connection_crimecar.php';	
	$sql = mysql_query("select a.carnumber,a.camera_id,co.id,co.name,co.host,co.go_mode,a.filename,d.cartype,d.code1,co.pos_x,co.pos_y 
			from alarm_display a,favourite f,configcamera co,alarm_dat d 
			where a.carnumber=d.carnumber and co.id=f.camera_ID and co.id=a.camera_id GROUP BY a.carnumber",$connection_crimecar);
	$kq="";
	if(mysql_num_rows($sql)!= "" )
	 {
	  	echo "yes";
	 }
	 else
	 {
	 	echo "no";
	 }
	  mysql_close($connection_crimecar);
?>
